package org.example.springbootwebdemo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String name;
    private String username;
    private String password;
    private Integer age;
    private LocalDateTime updateTime;

    public User(Integer id, String name, String username, String password, Integer age, LocalDateTime updateTime) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.age = age;
        this.updateTime = updateTime;
    }

    private Address address;

}
